package day8;

/**
 * @author oldliu
 * @since 1.0
 */
public class ForVAri {
    public static void main(String[] args) {
//        int k;
//        System.out.println(k);
        for (int i = 0; i < 10; i++) {
            System.out.println(i);
        }
        //System.out.println(i);//错误
        int start = 1;
        while (start < 10000) {
            boolean f = true;
            for (int j = 2; j * j <= start; j++) {
                if (start % j == 0) {
                    f = false;
                    break;
                }
            }
            System.out.println(f ? start + "是质数" : start + "Bushi");
            start++;
        }
       // System.out.println(f);
    }
}
